/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sms4j.notification;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.smslib.AGateway;
import org.smslib.AGateway.GatewayStatuses;
import org.smslib.IGatewayStatusNotification;

/**
 *
 * @author Swang
 * 通讯网关如GSM Modem状态改变通知类
 */
public class GatewayStatusNotification implements IGatewayStatusNotification {

    private static final Log log = LogFactory.getLog(GatewayStatusNotification.class);

    @Override
    public void process(AGateway gateway, GatewayStatuses oldStatus, GatewayStatuses newStatus) {
        log.info(">>> Gateway Status change for " + gateway.getGatewayId() + ", OLD: " + oldStatus + " -> NEW: " + newStatus);
    }
}
